﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/Master.Master" AutoEventWireup="true" CodeBehind="wFrmPronosticoImportacionSeguimientoImportacion.aspx.cs" Inherits="Crosland.Automotriz.Web.Repuestos.wFrmPronosticoImportacionSeguimientoImportacion" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>

<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxPivotGrid.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPivotGrid" tagprefix="dx" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxCallback" tagprefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="server">
 
    <script type="text/javascript">


        function pageLoad() {

            var control = document.getElementById('ctl00_cphMain_hfIndicador');
            cambiarImagenHeader();

            if (control.value == 'S') {
                $find('<%= ((AjaxControlToolkit.CollapsiblePanelExtender)this.Master.FindControl("cpeMenuGeneral")).BehaviorID %>')._doClose();

                control.value = 'N';
            }


        }

                  
               

</script>

    <script type="text/javascript">
    // <![CDATA[

        function ShowpopupModificar() {
            popupModificar.Show();


        }

        function Showpopupmsj() {
            popupmsj.Show();


        }
        function ShowpopupmsjError() {
            popupMsjError.Show();


        }



        function ShowpopupmsjAnular() {
            popupMsjAnular.Show();


        }

       

        function ShowpopupmsjErrorAnular() {
            popupMsjErrorAnular.Show();


        }
        function ShowPopupEstadoAnulado() {
            PopupEstadoAnulado.Show();


        }
    
    // ]]> 
    </script>

    

   <script type="text/javascript">

         function url() {
             open('wFrmReporteImportacionDetalle.aspx', 'NewWindow', 'top=0,left=0,width=1150,height=650,status=yes,resizable=yes,scrollbars=yes');
         }
 </script> 


  
    
  

  <div class="main-header" style="width:100%;">
         <div class="main-titulo">&nbsp;Importaciones</div>
         <script type="text/javascript">

             function abrirDialogo() {
                 $find('mpeArticulo').show();
             }
        
    </script>



    </div>
   

        <table>
        <tr>
            <td>
                    <table>
                        <tr>
                            <td>
                                <dx:ASPxButton ID="cmdNuevo" runat="server" 
                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                    CssPostfix="Office2010Blue" onclick="cmdNuevo_Click" 
                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                    Text="Nuevo" Height="22px" Width="100px">
                                </dx:ASPxButton>
                            </td>
                            <td>
                                <dx:ASPxButton ID="cmdModificar" runat="server" 
                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                    CssPostfix="Office2010Blue" 
                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                    Text="Modificar"
                                      Height="21px" Width="100px" AutoPostBack="False">
                                    <ClientSideEvents Click="function(s, e) {
    lblnumeroPedido.SetText(lblcodigo.GetText());     
    txtObservacion.SetText(txtPopObser.GetText());
    dpdFecEmbarqueEst.SetText(txtfecEmEst.GetText());
	dpdFecEmbarque.SetText(txtfecEm.GetText());
	dpdFecLlegaPuerto.SetText(txtFecLleg.GetText());
	dpdFecLlegaPuertoEst.SetText(txtFecLlegEst.GetText());
    ShowpopupModificar();
}" />
                                </dx:ASPxButton>
                            </td>
                            <td>
                            
                            
                                <dx:ASPxButton ID="btnAnalizar" runat="server" Text="Analizar" 
                                    AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                    CssPostfix="Office2010Blue" 
                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                    <ClientSideEvents Click="function(s, e) {
		nroPedido.SetText(lblcodigo.GetText());
		PopupReporte.Show();
}" />
                                </dx:ASPxButton> 
                            
                            </td>
                            <td>
                                <dx:ASPxButton ID="cmdAnular" runat="server" 
                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                    CssPostfix="Office2010Blue" 
                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                    Text="Anular" Width="100px" AutoPostBack="False">
                                    <ClientSideEvents Click="function(s, e) {
	PopupMsjConfirmacion.Show();
}" />
                                </dx:ASPxButton>
                            </td>
                               <td>
                            
                                <dx:ASPxButton ID="btnModificarDEt" runat="server" 
                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                    CssPostfix="Office2010Blue" onclick="btnModificarDEt_Click" 
                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                    Text="Modificar detalle">
                                </dx:ASPxButton>
                            
                            
                            </td>
                            <td>
                                <dx:ASPxButton ID="cmdSalir" runat="server" 
                                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                    CssPostfix="Office2010Blue" 
                                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                    Text="Salir" onclick="cmdSalir_Click" Height="23px" Width="100px">
                                </dx:ASPxButton>
                            </td>
                         
                        </tr>
                    </table>
                </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        </table>
       <table>
        <tr>
          
            <td style="width: 68px" class="formato-tabla-td">
                <div style="width: 150px">
                    Año(fech.llego puerto)&nbsp; </div>
            </td>
            <td style="width: 183px">
            
                <dx:ASPxComboBox ID="cboAnio" runat="server" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" SelectedIndex="1" Spacing="0" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                    LoadingPanelText="Cargando&amp;hellip;">
                    <Items>
                        <dx:ListEditItem Text="2012" Value="2012" />
                        <dx:ListEditItem Selected="True" Text="2013" Value="2013" />
                    </Items>
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                    </LoadingPanelImage>
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                    <ButtonStyle Width="13px">
                    </ButtonStyle>

<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
                </dx:ASPxComboBox>
            </td>
            <td style="width: 59px" class="formato-tabla-td">
                Estado&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td>
            <td style="width: 180px">
                <dx:ASPxComboBox ID="cboExtado" runat="server" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" SelectedIndex="0" 
                    Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                    </LoadingPanelImage>
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                    <ButtonStyle Width="13px">
                    </ButtonStyle>
                </dx:ASPxComboBox>
            </td>
            <td style="width: 718px">
        
             
                 <asp:Panel ID="Panel1" runat="server" DefaultButton="cmdMostrar">

                <dx:ASPxButton ID="cmdMostrar" runat="server" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                    CssPostfix="Office2010Blue" onclick="cmdMostrar_Click" 
                    SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Mostrar">
                </dx:ASPxButton>
                  </asp:Panel>
            </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
              
        </tr>
        </table>
      <table>
        <tr>
          
            <td class="formato-tabla-td" colspan="3">
                <dx:ASPxGridView ID="dgImportacionCab" runat="server" 
                    AutoGenerateColumns="False" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                    CssPostfix="Office2010Blue"  KeyFieldName="NUM_PEDIDO" 
                    DataMember="LOG_IMPORTACIONES" ClientInstanceName="dgImportacionCab" 
                    EnableCallBacks="False" 
                    onfocusedrowchanged="dgImportacionCab_FocusedRowChanged" 
                    onpageindexchanged="dgImportacionCab_PageIndexChanged" 
                    onafterperformcallback="dgImportacionCab_AfterPerformCallback" 
                    onload="dgImportacionCab_Load">
                    <Columns>
                        <dx:GridViewDataTextColumn FieldName="NUM_PEDIDO" VisibleIndex="1" 
                            Caption="Nro.Pedido" FixedStyle="Left" Width="130px">
<PropertiesTextEdit>
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
</PropertiesTextEdit>
                            <HeaderStyle HorizontalAlign="Center" />
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataDateColumn FieldName="FEC_PEDIDO" UnboundType="DateTime" 
                            VisibleIndex="2" Caption="Fec. Pedido" ToolTip="Fecha de pedido" 
                            FixedStyle="Left">
                            <PropertiesDateEdit DisplayFormatString="dd/MM/yyyy">
<CalendarProperties ClearButtonText="Vaciar" TodayButtonText="Hoy">
<FastNavProperties OkButtonText="Aceptar" CancelButtonText="Cancelar"></FastNavProperties>
</CalendarProperties>

<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
                            </PropertiesDateEdit>
                            <HeaderStyle HorizontalAlign="Center" />
                        </dx:GridViewDataDateColumn>
                        <dx:GridViewDataDateColumn FieldName="FEC_EMBARQUE" UnboundType="DateTime" 
                            VisibleIndex="4" Caption="Fec. Embarque" ToolTip="Fecha de embarque" 
                            FixedStyle="Left">
                            <PropertiesDateEdit DisplayFormatString="dd/MM/yyyy">
<CalendarProperties ClearButtonText="Vaciar" TodayButtonText="Hoy">
<FastNavProperties OkButtonText="Aceptar" CancelButtonText="Cancelar"></FastNavProperties>
</CalendarProperties>

<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
                            </PropertiesDateEdit>
                            <HeaderStyle HorizontalAlign="Center" />
                        </dx:GridViewDataDateColumn>
                        <dx:GridViewDataDateColumn FieldName="FEC_LLEG_PUERTO" UnboundType="DateTime" 
                            VisibleIndex="5" Caption="Fech.Llego Puerto" FixedStyle="Left">
                            <PropertiesDateEdit DisplayFormatString="dd/MM/yyyy">
<CalendarProperties ClearButtonText="Vaciar" TodayButtonText="Hoy">
<FastNavProperties OkButtonText="Aceptar" CancelButtonText="Cancelar"></FastNavProperties>
</CalendarProperties>

<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
                            </PropertiesDateEdit>
                            <HeaderStyle HorizontalAlign="Center" />
                        </dx:GridViewDataDateColumn>
                        <dx:GridViewDataDateColumn FieldName="FEC_LLEG_EST_PUERTO" 
                            UnboundType="DateTime" VisibleIndex="6" Caption="Fec. Puerto Est." 
                            ToolTip="Fecha estimada de llegada a puerto" FixedStyle="Left">
                            <PropertiesDateEdit DisplayFormatString="dd/MM/yyyy">
<CalendarProperties ClearButtonText="Vaciar" TodayButtonText="Hoy">
<FastNavProperties OkButtonText="Aceptar" CancelButtonText="Cancelar"></FastNavProperties>
</CalendarProperties>

<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
                            </PropertiesDateEdit>
                            <HeaderStyle HorizontalAlign="Center" />
                        </dx:GridViewDataDateColumn>
                        <dx:GridViewDataDateColumn FieldName="FEC_LLEG_ALMACEN" UnboundType="DateTime" 
                            VisibleIndex="9" Caption="Fec. Ing. Almacén" 
                            ToolTip="Fecha de ingreso a almacén">
                            <PropertiesDateEdit DisplayFormatString="dd/MM/yyyy">
<CalendarProperties ClearButtonText="Vaciar" TodayButtonText="Hoy">
<FastNavProperties OkButtonText="Aceptar" CancelButtonText="Cancelar"></FastNavProperties>
</CalendarProperties>

<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
                            </PropertiesDateEdit>
                            <HeaderStyle HorizontalAlign="Center" />
                        </dx:GridViewDataDateColumn>
                        <dx:GridViewDataTextColumn FieldName="Estado" VisibleIndex="10" >
                            <PropertiesTextEdit>
                                <MaskSettings Mask="dd/MM/yyyy" />

<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
                            </PropertiesTextEdit>
                            <HeaderStyle HorizontalAlign="Center" />
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="OBSERVACION" VisibleIndex="11" 
                            Caption="Observacion">
<PropertiesTextEdit>
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
</PropertiesTextEdit>
                            <HeaderStyle HorizontalAlign="Center" />
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="Proveedor" VisibleIndex="13" 
                            Caption="Proveedor" Width="200px">
<PropertiesTextEdit>
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
</PropertiesTextEdit>
                            <HeaderStyle HorizontalAlign="Center" />
                        </dx:GridViewDataTextColumn>
                        
                        <dx:GridViewBandColumn Caption="Total FOB $" VisibleIndex="7" FixedStyle="Left">
                        <Columns>
                        <dx:GridViewDataTextColumn FieldName="Total_Sug" VisibleIndex="5" 
                            Caption="Sugerido" FixedStyle="Left">
<PropertiesTextEdit DisplayFormatString="##,##0.00">
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
</PropertiesTextEdit>
                            <HeaderStyle HorizontalAlign="Center" />
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="Total_Cot" VisibleIndex="6" 
                            Caption="Cotizado" FixedStyle="Left">
<PropertiesTextEdit DisplayFormatString="##,##0.00">
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
</PropertiesTextEdit>
                            <HeaderStyle HorizontalAlign="Center" />
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="Total_Pac" VisibleIndex="7" 
                            Caption="Embarcado" ToolTip="Cantidad embarcada" FixedStyle="Left">
<PropertiesTextEdit DisplayFormatString="##,##0.00">
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
</PropertiesTextEdit>
                            <HeaderStyle HorizontalAlign="Center" />
                        </dx:GridViewDataTextColumn>
                        </Columns>
                            <HeaderStyle HorizontalAlign="Center" />
                        </dx:GridViewBandColumn>
                        <dx:GridViewDataTextColumn Caption="Fec. Emb. Est." 
                            FieldName="FEC_EMBARQUE_EST" VisibleIndex="4" 
                            ToolTip="Fecha de embarque estimado" FixedStyle="Left">
                            <PropertiesTextEdit DisplayFormatString="dd-MM-yyyy">
                                <ValidationSettings ErrorText="Valor inválido">
                                    <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                </ValidationSettings>
                            </PropertiesTextEdit>
                            <HeaderStyle HorizontalAlign="Center" />
                        </dx:GridViewDataTextColumn>
                    </Columns>
                    <SettingsBehavior AllowFocusedRow="True" 
                        ProcessFocusedRowChangedOnServer="True" />
                    <SettingsPager PageSize="5">
                    </SettingsPager>

<SettingsLoadingPanel Text="Cargando&amp;hellip;"></SettingsLoadingPanel>

                    <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                        <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                        </LoadingPanelOnStatusBar>
                        <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                        </LoadingPanel>
                    </Images>
                    <ImagesFilterControl>
                        <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                        </LoadingPanel>
                    </ImagesFilterControl>
                    <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                        CssPostfix="Office2010Blue">
                        <Header ImageSpacing="5px" SortingImageSpacing="5px">
                        </Header>
                        <LoadingPanel ImageSpacing="5px">
                        </LoadingPanel>
                    </Styles>
                    <StylesPager>
                        <PageNumber ForeColor="#3E4846">
                        </PageNumber>
                        <Summary ForeColor="#1E395B">
                        </Summary>
                    </StylesPager>
                    <StylesEditors ButtonEditCellSpacing="0">
                        <ProgressBar Height="21px">
                        </ProgressBar>
                    </StylesEditors>
                </dx:ASPxGridView>
            </td>
              
        </tr>
         
        <tr>
            <td style="width: 718px">
                Detalle Importaciones</td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td colspan="3">
                <dx:ASPxGridView ID="dgImportacionDet" runat="server" AutoGenerateColumns="False" 
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" width="100%" 
                    CssPostfix="Office2010Blue" KeyFieldName="COD_MATERIAL" 
                    onpageindexchanged="dgImportacionDet_PageIndexChanged" 
                    ClientInstanceName="dGrid" 
                    onafterperformcallback="dgImportacionDet_AfterPerformCallback">
                    <TotalSummary>
                        <dx:ASPxSummaryItem FieldName="Total_Cot" ShowInColumn="Total_Cot" 
                            SummaryType="Sum" />
                        <dx:ASPxSummaryItem FieldName="Total_Pac" ShowInColumn="Total_Pac" 
                            SummaryType="Sum" />
                        <dx:ASPxSummaryItem FieldName="Total_Sug" ShowInColumn="Total_Sug" 
                            SummaryType="Sum" />
                    </TotalSummary>
                    <Columns>
                        <dx:GridViewDataTextColumn FieldName="COD_MATERIAL" VisibleIndex="1" 
                            Caption="Código" ToolTip="Código de articulo" Width="15px">
<PropertiesTextEdit>
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
</PropertiesTextEdit>
                            <HeaderStyle HorizontalAlign="Center" />
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="DES_MATERIAL_IMP" VisibleIndex="2" 
                            Caption="Descripción" ToolTip="Descripción de artículo" Width="400px">
<PropertiesTextEdit>
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
</PropertiesTextEdit>
                            <HeaderStyle HorizontalAlign="Center" />
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="FOB_ME" VisibleIndex="3" Caption="FOB $" 
                            ToolTip="Importe FOB en dólares" Width="15px">
<PropertiesTextEdit  DisplayFormatString="##,##0.00">
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
</PropertiesTextEdit>
                            <HeaderStyle HorizontalAlign="Center" />
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewBandColumn Caption="Cantidades" VisibleIndex="4">
                        <Columns>
                        <dx:GridViewDataTextColumn FieldName="Cant_Sug" VisibleIndex="5" 
                            Caption="Sugerido">
<PropertiesTextEdit DisplayFormatString="{0:N0}">
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
</PropertiesTextEdit>
                            <HeaderStyle HorizontalAlign="Center" />
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="Cant_Cot" VisibleIndex="6" 
                            Caption="Cotizado">
<PropertiesTextEdit DisplayFormatString="{0:N0}">
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
</PropertiesTextEdit>
                            <HeaderStyle HorizontalAlign="Center" />
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="Cant_Pac" VisibleIndex="7" 
                            Caption="Embarcado" ToolTip="Cantidad embarcada">
<PropertiesTextEdit DisplayFormatString="{0:N0}">
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
</PropertiesTextEdit>
                            <HeaderStyle HorizontalAlign="Center" />
                        </dx:GridViewDataTextColumn>
                        </Columns>
                            <HeaderStyle HorizontalAlign="Center" />
                        </dx:GridViewBandColumn>
                        <dx:GridViewBandColumn Caption="Totales" VisibleIndex="8">
                      <Columns>
                        <dx:GridViewDataTextColumn FieldName="Total_Sug" VisibleIndex="9" 
                            Caption="Sugerido">
<PropertiesTextEdit DisplayFormatString="##,##0.00">
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
</PropertiesTextEdit>
                            <HeaderStyle HorizontalAlign="Center" />
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="Total_Cot" VisibleIndex="10" 
                            Caption="Cotizado">
<PropertiesTextEdit DisplayFormatString="##,##0.00">
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
</PropertiesTextEdit>
                            <HeaderStyle HorizontalAlign="Center" />
                        </dx:GridViewDataTextColumn>
                        <dx:GridViewDataTextColumn FieldName="Total_Pac" VisibleIndex="11" 
                            Caption="Embarcado" ToolTip="Importe embarcado" Width="20px">
<PropertiesTextEdit DisplayFormatString="##,##0.00">
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
</PropertiesTextEdit>
                            <HeaderStyle HorizontalAlign="Center" />
                        </dx:GridViewDataTextColumn>
                        </Columns>
                            <HeaderStyle HorizontalAlign="Center" />
                          </dx:GridViewBandColumn>
                    </Columns>
                    <SettingsBehavior AllowFocusedRow="True" AllowSelectSingleRowOnly="True" 
                        AllowSelectByRowClick="True" />
                    <SettingsPager PageSize="20">
                    </SettingsPager>
                    <Settings ShowFilterRow="True" />

<SettingsLoadingPanel Text="Cargando&amp;hellip;"></SettingsLoadingPanel>

                    <Images SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                        <LoadingPanelOnStatusBar Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                        </LoadingPanelOnStatusBar>
                        <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                        </LoadingPanel>
                    </Images>
                    <ImagesFilterControl>
                        <LoadingPanel Url="~/App_Themes/Office2010Blue/GridView/Loading.gif">
                        </LoadingPanel>
                    </ImagesFilterControl>
                    <Styles CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                        CssPostfix="Office2010Blue">
                        <Header ImageSpacing="5px" SortingImageSpacing="5px">
                        </Header>
                        <LoadingPanel ImageSpacing="5px">
                        </LoadingPanel>
                    </Styles>
                    <StylesPager>
                        <PageNumber ForeColor="#3E4846">
                        </PageNumber>
                        <Summary ForeColor="#1E395B">
                        </Summary>
                    </StylesPager>
                    <StylesEditors ButtonEditCellSpacing="0">
                        <ProgressBar Height="21px">
                        </ProgressBar>
                    </StylesEditors>
                </dx:ASPxGridView>
              <asp:HiddenField ID="hfIndicador" runat="server" Value="S" />  
            </td>
        </tr>
        <tr>
            <td style="width: 718px">
                <dx:ASPxTextBox ID="txtfecEmEst" runat="server" 
                    ClientInstanceName="txtfecEmEst" Width="1px" BackColor="White" 
                    ForeColor="White" ReadOnly="True" Height="1px">
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
                    <Border BorderColor="White" />
                </dx:ASPxTextBox>
                <dx:ASPxTextBox ID="txtfecEm" runat="server" ClientInstanceName="txtfecEm" 
                    Width="1px" ReadOnly="True" Height="1px">
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
                    <ReadOnlyStyle BackColor="White" ForeColor="White">
                        <Border BorderColor="White" />
                    </ReadOnlyStyle>
                </dx:ASPxTextBox>
                <dx:ASPxTextBox ID="txtFecLlegEst" runat="server" 
                    ClientInstanceName="txtFecLlegEst" Width="1px" ReadOnly="True" 
                    Height="1px">
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
                    <ReadOnlyStyle BackColor="White" ForeColor="White">
                        <Border BorderColor="White" />
                    </ReadOnlyStyle>
                </dx:ASPxTextBox>
                <dx:ASPxTextBox ID="txtFecLleg" runat="server" 
                    ClientInstanceName="txtFecLleg" Width="1px" ReadOnly="True" Height="1px">
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
                    <ReadOnlyStyle BackColor="White" ForeColor="White">
                        <Border BorderColor="White" />
                    </ReadOnlyStyle>
                </dx:ASPxTextBox>
                <dx:ASPxTextBox ID="txtPopObser" runat="server" 
                    ClientInstanceName="txtPopObser" Width="1px" ReadOnly="True" Height="1px">
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
                    <ReadOnlyStyle BackColor="White" ForeColor="White">
                        <Border BorderColor="White" />
                    </ReadOnlyStyle>
                </dx:ASPxTextBox>
                <dx:ASPxTextBox ID="lblcodigo" runat="server" ClientInstanceName="lblcodigo" 
                    Width="1px" ReadOnly="True" Height="1px">
<ValidationSettings ErrorText="Valor inv&#225;lido">
<RegularExpression ErrorText="Fall&#243; la validaci&#243;n de expresi&#243;n Regular"></RegularExpression>
</ValidationSettings>
                    <ReadOnlyStyle BackColor="White" ForeColor="White">
                        <Border BorderColor="White" />
                    </ReadOnlyStyle>
                </dx:ASPxTextBox>
                <br />
            </td>
            <td>
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>












    <dx:ASPxPopupControl ID="popupModificar" runat="server" AllowDragging="True" 
                    ClientInstanceName="popupModificar" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                    EnableViewState="False" HeaderText="Editar Datos de Importación" 
                    LoadingPanelText="Cargando&amp;hellip;" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" 
        Width="700px" Height="200px">
                
                    <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                    </LoadingPanelImage>
                    <CloseButtonStyle>
                        <Paddings Padding="0px" />
                    </CloseButtonStyle>
                    <ContentStyle>
                        <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                    </ContentStyle>
                    <HeaderStyle>
                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" 
                        PaddingTop="4px" />
                    </HeaderStyle>
                
                 <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl5" runat="server" SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel2" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="Panelpopup" runat="server">
                        

                            <table>
                                <tr>
                                    <td align="left" style="width: 154px">
                                        Número de pedido:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td>
                                    <td style="width: 182px">
                                        <dx:ASPxTextBox ID="lblnumeroPedido" runat="server" 
                                            ClientInstanceName="lblnumeroPedido" ReadOnly="True" Width="170px" 
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" 
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                            <ValidationSettings>
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                            </ValidationSettings>
                                        </dx:ASPxTextBox>
                                    </td>
                                    <td align="left" style="width: 151px">
                                        Estado:</td>
                                    <td>
                                        <dx:ASPxComboBox ID="cboEstadoImp" runat="server" 
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" 
                                            Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                            <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                            </LoadingPanelImage>
                                            <LoadingPanelStyle ImageSpacing="5px">
                                            </LoadingPanelStyle>
                                        </dx:ASPxComboBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="height: 5px; width: 154px;">
                                    </td>
                                    <td style="height: 5px; width: 182px;">
                                    </td>
                                    <td style="height: 5px; width: 151px;">
                                    </td>
                                    <td style="height: 5px">
                                    </td>
                                </tr>
                                <tr>
                                    <td align="left" style="width: 154px">
                                        Fecha de embarque est:&nbsp;&nbsp;
                                    </td>
                                    <td style="width: 182px">
                                        <dx:ASPxDateEdit ID="dpdFecEmbarqueEst" runat="server" 
                                            ClientInstanceName="dpdFecEmbarqueEst" DisplayFormatString="dd/MM/yyyy" 
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" Spacing="0" 
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                            <CalendarProperties ClearButtonText="Vaciar" TodayButtonText="Hoy">
                                                <HeaderStyle Spacing="1px" />
                                                <FastNavProperties CancelButtonText="Cancelar" OkButtonText="Aceptar" />
                                            </CalendarProperties>
                                            <ValidationSettings>
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                            </ValidationSettings>
                                        </dx:ASPxDateEdit>
                                    </td>
                                    <td align="left" style="width: 151px">
                                        Fecha&nbsp; llegada puerto&nbsp;est:</td>
                                    <td>
                                        <dx:ASPxDateEdit ID="dpdFecLlegaPuertoEst" runat="server" 
                                            ClientInstanceName="dpdFecLlegaPuertoEst" 
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" Spacing="0" 
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                            <CalendarProperties ClearButtonText="Vaciar" TodayButtonText="Hoy">
                                                <HeaderStyle Spacing="1px" />
                                                <FastNavProperties CancelButtonText="Cancelar" OkButtonText="Aceptar" />
                                            </CalendarProperties>
                                            <ValidationSettings>
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                            </ValidationSettings>
                                        </dx:ASPxDateEdit>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style1" height="5" style="width: 154px">
                                        </td>
                                    <td class="style1" height="5" style="width: 182px">
                                        </td>
                                    <td class="style1" height="5" style="width: 151px">
                                        </td>
                                    <td class="style1" height="5">
                                        </td>
                                </tr>
                                <tr>
                                    <td align="left" style="width: 154px">
                                        Fecha de embarque: </td>
                                    <td style="width: 182px">
                                        <dx:ASPxDateEdit ID="dpdFecEmbarque" runat="server" 
                                            ClientInstanceName="dpdFecEmbarque" 
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" Spacing="0" 
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                            <CalendarProperties ClearButtonText="Vaciar" TodayButtonText="Hoy">
                                                <HeaderStyle Spacing="1px" />
                                                <FastNavProperties CancelButtonText="Cancelar" OkButtonText="Aceptar" />
                                            </CalendarProperties>
                                            <ValidationSettings>
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                            </ValidationSettings>
                                        </dx:ASPxDateEdit>
                                    </td>
                                    <td align="left" style="width: 151px">
                                        Fecha&nbsp; llegada puerto:</td>
                                    <td>
                                        <dx:ASPxDateEdit ID="dpdFecLlegaPuerto" runat="server" 
                                            ClientInstanceName="dpdFecLlegaPuerto" 
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" Spacing="0" 
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                            <CalendarProperties ClearButtonText="Vaciar" TodayButtonText="Hoy">
                                                <HeaderStyle Spacing="1px" />
                                                <FastNavProperties CancelButtonText="Cancelar" OkButtonText="Aceptar" />
                                            </CalendarProperties>
                                            <ValidationSettings>
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                            </ValidationSettings>
                                        </dx:ASPxDateEdit>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style1" height="5" style="width: 154px">
                                        </td>
                                    <td class="style1" style="width: 182px">
                                        </td>
                                    <td class="style1" style="width: 151px">
                                        </td>
                                    <td class="style1">
                                        </td>
                                </tr>
                                <tr>
                                    <td align="left" style="width: 154px">
                                        Observaciones:</td>
                                    <td colspan="3">
                                        <dx:ASPxMemo ID="txtObservacion" runat="server" Height="71px" Width="490px" 
                                            ClientInstanceName="txtObservacion" 
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" 
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                                            <ValidationSettings>
                                                <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                            </ValidationSettings>
                                        </dx:ASPxMemo>
                                    </td>
                                </tr>
                                </table>
                                <table>
                                <tr><td>
                                
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;</td>
                                  
                                    <td>
                                        <dx:ASPxButton ID="btnPopGrabar" runat="server" AutoPostBack="False" 
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" OnClick="btnPopGrabar_Click" 
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Grabar">
                                            <ClientSideEvents Click="function(s, e) {
	popupModificar.PerformCallback();
}" />
                                        </dx:ASPxButton>
                                    </td>
                                    <td>
                                        <dx:ASPxButton ID="btnPopSalir" runat="server" AutoPostBack="False" 
                                            CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                            CssPostfix="Office2010Blue" 
                                            SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" Text="Cancelar">
                                            <ClientSideEvents Click="function(s, e) {
	popupModificar.Hide();
}" />
                                        </dx:ASPxButton>
                                    </td>
                                </tr>
                            </table>


                 </dx:PanelContent>
    </PanelCollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
</ContentCollection>
                </dx:ASPxPopupControl>







<dx:ASPxPopupControl ID="popupmsj" runat="server" AllowDragging="True" 
                    ClientInstanceName="popupmsj" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                    EnableViewState="False" HeaderText="Mensaje" 
                    LoadingPanelText="Cargando&amp;hellip;" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" Width="300px">
                
                    <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                    </LoadingPanelImage>
                    <CloseButtonStyle>
                        <Paddings Padding="0px" />
                    </CloseButtonStyle>
                    <ContentStyle>
                        <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                    </ContentStyle>
                    <HeaderStyle>
                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" 
                        PaddingTop="4px" />
                    </HeaderStyle>
                
                 <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl1" runat="server" SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel1" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent1" runat="server">
                        <table>
                        <tr>
                        <td colspan="2">
                        
                        
                        
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Se actualizó&nbsp; de forma satisfactoria !<br /> &nbsp;</td>
                        
                        </tr>
                        <tr>
                        <td>
                        
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td>
                        <td>
                        
                            <dx:ASPxButton ID="ASPxButton1" runat="server" Text="Aceptar" 
                                AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                Width="10px">
                                <ClientSideEvents Click="function(s, e) {
	popupmsj.Hide();
	popupModificar.Hide();
}" />
                            </dx:ASPxButton>
                        </td>
                        
                        </tr>
                        
                        
                        </table>




                 </dx:PanelContent>
    </PanelCollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
</ContentCollection>
                </dx:ASPxPopupControl>











<dx:ASPxPopupControl ID="popupMsjError" runat="server" AllowDragging="True" 
                    ClientInstanceName="popupMsjError" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                    EnableViewState="False" HeaderText="Mensaje" 
                    LoadingPanelText="Cargando&amp;hellip;" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" 
        Width="300px">
                
                    <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                    </LoadingPanelImage>
                    <CloseButtonStyle>
                        <Paddings Padding="0px" />
                    </CloseButtonStyle>
                    <ContentStyle>
                        <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                    </ContentStyle>
                    <HeaderStyle>
                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" 
                        PaddingTop="4px" />
                    </HeaderStyle>
                
                 <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl2" runat="server" SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel3" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent2" runat="server">
                        <table>
                        <tr>
                        <td colspan="2">
                        
                        
                        
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Error en la actualización !<br /> &nbsp;</td>
                        
                        </tr>
                        <tr>
                        <td>
                        
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        
                        </td>
                        <td>
                        
                            <dx:ASPxButton ID="ASPxButton2" runat="server" Text="Aceptar" 
                                AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                Width="10px">
                                <ClientSideEvents Click="function(s, e) {
	popupMsjError.Hide();
	popupModificar.Hide();
}" />
                            </dx:ASPxButton>
                        </td>
                        
                        </tr>
                        
                        
                        </table>




                 </dx:PanelContent>
    </PanelCollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
</ContentCollection>
                </dx:ASPxPopupControl>








<dx:ASPxPopupControl ID="popupMsjAnular" runat="server" AllowDragging="True" 
                    ClientInstanceName="popupMsjAnular" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                    EnableViewState="False" HeaderText="Mensaje" 
                    LoadingPanelText="Cargando&amp;hellip;" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" 
        Width="300px">
                
                    <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                    </LoadingPanelImage>
                    <CloseButtonStyle>
                        <Paddings Padding="0px" />
                    </CloseButtonStyle>
                    <ContentStyle>
                        <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                    </ContentStyle>
                    <HeaderStyle>
                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" 
                        PaddingTop="4px" />
                    </HeaderStyle>
                
                 <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl3" runat="server" SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel4" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent3" runat="server">
                        <table>
                        <tr>
                        <td colspan="2">
                        
                        
                        
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Se anuló de forma satisfactoria&nbsp; !<br /> &nbsp;</td>
                        
                        </tr>
                        <tr>
                        <td>
                        
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        
                        </td>
                        <td>
                        
                            <dx:ASPxButton ID="ASPxButton3" runat="server" Text="Aceptar" 
                                AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                Width="10px">
                                <ClientSideEvents Click="function(s, e) {
	popupMsjAnular.Hide();
	popupModificar.Hide();
}" />
                            </dx:ASPxButton>
                        </td>
                        
                        </tr>
                        
                        
                        </table>




                 </dx:PanelContent>
    </PanelCollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
</ContentCollection>
                </dx:ASPxPopupControl>














<dx:ASPxPopupControl ID="popupMsjErrorAnular" runat="server" AllowDragging="True" 
                    ClientInstanceName="popupMsjErrorAnular" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                    EnableViewState="False" HeaderText="Mensaje" 
                    LoadingPanelText="Cargando&amp;hellip;" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" 
        Width="300px">
                
                    <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                    </LoadingPanelImage>
                    <CloseButtonStyle>
                        <Paddings Padding="0px" />
                    </CloseButtonStyle>
                    <ContentStyle>
                        <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                    </ContentStyle>
                    <HeaderStyle>
                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" 
                        PaddingTop="4px" />
                    </HeaderStyle>
                
                 <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl4" runat="server" SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel5" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent4" runat="server">
                        <table>
                        <tr>
                        <td colspan="2">
                        
                        
                        
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; Error en la anulación&nbsp; !<br /> &nbsp;</td>
                        
                        </tr>
                        <tr>
                        <td>
                        
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        
                        </td>
                        <td>
                        
                            <dx:ASPxButton ID="ASPxButton4" runat="server" Text="Aceptar" 
                                AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                Width="10px">
                                <ClientSideEvents Click="function(s, e) {
	popupMsjErrorAnular.Hide();
    popupModificar.Hide();
}" />
                            </dx:ASPxButton>
                        </td>
                        
                        </tr>
                        
                        
                        </table>




                 </dx:PanelContent>
    </PanelCollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
</ContentCollection>
                </dx:ASPxPopupControl>











<dx:ASPxPopupControl ID="PopupEstadoAnulado" runat="server" AllowDragging="True" 
                    ClientInstanceName="PopupEstadoAnulado" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                    EnableViewState="False" HeaderText="Mensaje" 
                    LoadingPanelText="Cargando&amp;hellip;" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" 
        Width="300px">
                
                    <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                    </LoadingPanelImage>
                    <CloseButtonStyle>
                        <Paddings Padding="0px" />
                    </CloseButtonStyle>
                    <ContentStyle>
                        <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                    </ContentStyle>
                    <HeaderStyle>
                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" 
                        PaddingTop="4px" />
                    </HeaderStyle>
                
                 <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl8" runat="server" SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel8" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent7" runat="server">
                        <table>
                        <tr>
                        <td colspan="2">
                        
                        
                        
                            &nbsp; No se puede anular el registro ya está anulado<br />&nbsp;&nbsp;</td>
                        
                        </tr>
                        <tr>
                        <td>
                        
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                        <td>
                        
                            <dx:ASPxButton ID="ASPxButton5" runat="server" Text="Aceptar" 
                                AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                Width="10px">
                                <ClientSideEvents Click="function(s, e) {
	
    PopupEstadoAnulado.Hide();
}" />
                            </dx:ASPxButton>
                        </td>
                        
                        </tr>
                        
                        
                        </table>




                 </dx:PanelContent>
    </PanelCollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
</ContentCollection>
                </dx:ASPxPopupControl>












<dx:ASPxPopupControl ID="PopupMsjConfirmacion" runat="server" AllowDragging="True" 
                    ClientInstanceName="PopupMsjConfirmacion" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                    EnableViewState="False" HeaderText="Mensaje" 
                    LoadingPanelText="Cargando&amp;hellip;" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" 
        Width="300px">
                
                    <LoadingPanelImage Url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                    </LoadingPanelImage>
                    <CloseButtonStyle>
                        <Paddings Padding="0px" />
                    </CloseButtonStyle>
                    <ContentStyle>
                        <BorderBottom BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" />
                    </ContentStyle>
                    <HeaderStyle>
                    <Paddings PaddingBottom="4px" PaddingLeft="10px" PaddingRight="4px" 
                        PaddingTop="4px" />
                    </HeaderStyle>
                
                 <ContentCollection>
<dx:PopupControlContentControl ID="PopupControlContentControl6" runat="server" SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel6" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent ID="PanelContent5" runat="server">
                        <table>
                        <tr>
                        <td colspan="3">
                        
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ¿Estas seguro de anular este registro ?<br /> &nbsp; </td>
                        
                        </tr>
                        </table>
                        <table>
                        <tr>
                        <td>

                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;</td>

                        <td>
                        
                        
                            <dx:ASPxButton ID="btnPopAceptar" runat="server" Text="Aceptar" 
                                AutoPostBack="False" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                ClientInstanceName="btnPopAceptar" OnClick="btnPopAceptar_Click" 
                                Width="10px">
                                <ClientSideEvents Click="function(s, e) {
	PopupMsjConfirmacion.Hide();
	e.processOnServer = true;
}" />
                            </dx:ASPxButton>
                          
                        </td>

                        <td>
                            <dx:ASPxButton ID="btnPopCancelar" runat="server" 
                                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                CssPostfix="Office2010Blue" 
                                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                Text="Cancelar" AutoPostBack="False" Width="10px">
                                <ClientSideEvents Click="function(s, e) {
	PopupMsjConfirmacion.Hide();
}" />
                            </dx:ASPxButton>
                          </td>
                        
                        </tr>
                        
                        
                        </table>




                 </dx:PanelContent>
    </PanelCollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
</ContentCollection>
                </dx:ASPxPopupControl>













<dx:ASPxPopupControl ID="PopupReporte" runat="server" AllowDragging="True" 
                    ClientInstanceName="PopupReporte" CloseAction="CloseButton" 
                    CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" CssPostfix="PlasticBlue" 
                    EnableViewState="False" HeaderText="Consultar Reporte" 
                    LoadingPanelText="Cargando&amp;hellip;" Modal="True" 
                    PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" 
                    SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css" 
        Width="300px">
                
                    

                    <loadingpanelimage url="~/App_Themes/PlasticBlue/Web/dvLoading.gif">
                    

                    </loadingpanelimage>
                    

                    <closebuttonstyle>
                    

                    <paddings padding="0px" />
                    

                    </closebuttonstyle>
                    

                    <contentstyle>
                    

                    <borderbottom bordercolor="#E0E0E0" borderstyle="Solid" borderwidth="1px" />
                    

                    </contentstyle>
                    

                    <HeaderStyle>

                    <paddings paddingbottom="4px" paddingleft="10px" paddingright="4px" 
                        paddingtop="4px" />
                    

                    </HeaderStyle>
                    

                    <contentcollection>
                    
                    <dx:PopupControlContentControl ID="PopupControlContentControl7" runat="server" 
                        SupportsDisabledAttribute="True">

    <br />
      <dx:ASPxPanel ID="ASPxPanel7" runat="server" DefaultButton="btCreate">
                    <panelcollection>
                        <dx:PanelContent ID="PanelContent6" runat="server">
                        <table>
                        <tr>
                        <td>
                        
                            Nro.Pedido:</td>
                        
                            <td>
                                <dx:ASPxLabel ID="nroPedido" runat="server" ClientInstanceName="nroPedido">
                                </dx:ASPxLabel>
                            </td>
                        
                        </tr>
                            <tr>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td>
                                    Tipo pedido:</td>
                                <td>
                                    <dx:ASPxComboBox ID="txtPedido1" runat="server" 
                                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                        CssPostfix="Office2010Blue" Spacing="0" 
                                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                        SelectedIndex="0">
                                        <Items>
                                            <dx:ListEditItem Text="Sugerido" Value="Sugerido" Selected="True" />
                                            <dx:ListEditItem Text="Cotizado" Value="Cotizado" />
                                            <dx:ListEditItem Text="Embarcado" Value="Embarcado" />
                                        </Items>
                                        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                        </LoadingPanelImage>
                                        <LoadingPanelStyle ImageSpacing="5px">
                                        </LoadingPanelStyle>
                                        <ValidationSettings>
                                            <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                        </ValidationSettings>
                                    </dx:ASPxComboBox>
                                </td>
                            </tr>
                          
                       
                        
                        
                            <tr>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                          
                       
                        
                        
                            <tr>
                                <td>
                                    Tipo pedido:</td>
                                <td>
                                    <dx:ASPxComboBox ID="txtPedido2" runat="server" 
                                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                        CssPostfix="Office2010Blue" Spacing="0" 
                                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                        SelectedIndex="0">
                                        <Items>
                                            <dx:ListEditItem Text="Sugerido" Value="Sugerido" Selected="True" />
                                            <dx:ListEditItem Text="Cotizado" Value="Cotizado" />
                                            <dx:ListEditItem Text="Embarcado" Value="Embarcado" />
                                        </Items>
                                        <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                                        </LoadingPanelImage>
                                        <LoadingPanelStyle ImageSpacing="5px">
                                        </LoadingPanelStyle>
                                        <ValidationSettings>
                                            <RegularExpression ErrorText="Falló la validación de expresión Regular" />
                                        </ValidationSettings>
                                    </dx:ASPxComboBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    &nbsp;</td>
                                <td>
                                    &nbsp;</td>
                            </tr>
                          
                        
                        </table>

                        <table>
                        
                          <tr>
                                <td>
                                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;</td>
                                <td>
                                    <dx:ASPxButton ID="btnconsultar" runat="server" Text="Consultar" 
                                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                        CssPostfix="Office2010Blue" OnClick="btnconsultar_Click" 
                                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                        AutoPostBack="False">
                                        <ClientSideEvents Click="function(s, e) {
PopupReporte.Hide();
e.processOnServer = true;
}" />
                                    </dx:ASPxButton>
                                </td>
                                <td>
                                    <dx:ASPxButton ID="btncancelarpop" runat="server" Text="Cancelar" 
                                        CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                                        CssPostfix="Office2010Blue" 
                                        SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                                        AutoPostBack="False">
                                        <ClientSideEvents Click="function(s, e) {
	PopupReporte.Hide();
}" />
                                    </dx:ASPxButton>
                                </td>
                            </tr>
                        
                        
                        
                        
                        </table>




                 </dx:PanelContent>
    </panelcollection>
   </dx:ASPxPanel>
   </dx:PopupControlContentControl>
                    
                    </contentcollection>
                    

                </dx:ASPxPopupControl>



 

</asp:Content>

